package com.study_online.service;

import com.study_online.domain.ResultInfo;
import com.study_online.domain.User;
import com.study_online.domain.Video;

import java.util.List;

/**
 * @author 孙远帅
 */
public interface UserService {
    public ResultInfo selectAll(String tablename);

    /**
     * 用户登录
     * @param
     * @param password
     * @return
     */
    public ResultInfo login(String account,String password);

    public ResultInfo logining(String account,String password);

    /**
     * 邮箱查询
     * @param email
     * @return
     */
    public ResultInfo findEmail(String email);

    public ResultInfo findUsername(String username);
    /**
     * 用户注册
     * @param user
     * @return
     */
    public ResultInfo register(User user,String code);

    /**
     * 首页视频展示
     * @return
     */
    public ResultInfo selectVideoList(List<Integer> videoIds);

    /**
     * 首页视频展示
     * @return
     */
    public ResultInfo selectNoticeList(List<Integer> noticeIds);


    public ResultInfo selectHomeVideo();
}
